package com.miaosha.ms_02.result;

/**
 * @author hezhaoxiang
 * @date 10:12 2020/9/13
 * @deprecated //系统相关 枚举类
 **/
public enum ResultEnum {
    //5001xx 客户端异常
    SERVER_ERROR(500100,"服务端异常"),

    //5002xx 登陆异常
    SESSION_ERROR(500210, "Session 不存在"),
    PASSWORD_EMPTY(500211, "密码不能为空"),
    MOBILE_EMPTY(500212, "手机号不能为空"),
    MOBILE_ERROR(500213, "手机号格式异常"),
    MOBILE_NOT_EXIST(500214, "手机号不存在"),

    //40x 客户端异常
    RESULT_SUCCESS(200, "操作成功");

    private int code;

    private String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
